#solution for problem from fifth school internet-olympiad

read n
while i < n:
	read t
	if (t / 2) * 2 == t:
		cnt0 = cnt0 + 1
	end
    if (t / 2) * 2 != t:
    	cnt1 = cnt1 + 1
    end
    i = i + 1
end
print cnt1 * cnt0
